package com.xc.hotelmgr.consumermq.service.FeignService;


import com.xc.hotelmgr.consumermq.pojo.mq.*;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;

@FeignClient("datapusher-ali")
public interface AliFeignService {

    //增量更新
    @RequestMapping(value = "/hotel/send_update_hotel", method = RequestMethod.POST)
    String callbackHotel(@RequestBody HotelCallBack hotelCallBack);

    @RequestMapping(value = "/rateplan/callback_rateplan", method = RequestMethod.POST)
    String callbackRp(@RequestBody RpCallBack rpCallBack);

    @RequestMapping(value = "/daily_room/hotelRatesSend", method = RequestMethod.POST)
    String callbackRates(@RequestBody RatesCallBack ratesCallBack);

    @RequestMapping(value = "/rateplan/delete_rateplan", method = RequestMethod.POST)
    boolean deleteRateplan(@RequestBody DelRpMQ delRpMQ);

    /**
     * 酒店更新，从新推送
     * @param sendAll
     * @return
     */
    @RequestMapping(value = "/hotel/send_all", method = RequestMethod.POST)
    String pushHotelAll(@RequestBody SendAll sendAll);
}
